package com.dxt.service;

import com.dxt.dao.UserDao;
import com.dxt.dao.UserDaoImpl;
import com.dxt.pojo.User;

import java.sql.SQLException;

/**
 * BelongProject: deliveryManage
 * BelongPackage: com.dxt.service
 * Description:
 *
 * @Author 段鑫涛
 * @Create 2025/3/30 21:57
 * @Version 1.0
 */
public class UserServiceImpl implements UserService{
    private UserDao userDao = new UserDaoImpl();
    @Override
    public User getUserByUsername(String username) throws SQLException {
        return userDao.getUserByUsername(username);
    }

    @Override
    public void UpdatePassword(String newPassword, Integer id) throws SQLException {
        userDao.UpdatePassword(newPassword, id);
    }
}
